%====================================================
% This files erase the structure of the folder
% It undos what initialization does.
%====================================================
clear
cd benchmark

mfiles = dir('*.m');
for i = 1:length(mfiles)
    oldname = mfiles(i).name;
    newname = ['benchmark_',oldname];
    movefile(oldname,newname)
end

textfiles = dir('*.txt');
for i = 1:length(textfiles)
    oldname = textfiles(i).name;
    newname = ['benchmark_',oldname];
    movefile(oldname,newname)
end

matfiles = dir('*.mat');
for i = 1:length(matfiles)
    oldname = matfiles(i).name;
    newname = ['benchmark_',oldname];
    movefile(oldname,newname)
end
cd ..
movefile('benchmark/benchmark*')

cd entry

mfiles = dir('*.m');
for i = 1:length(mfiles)
    oldname = mfiles(i).name;
    newname = ['entry_',oldname];
    movefile(oldname,newname)
end

textfiles = dir('*.txt');
for i = 1:length(textfiles)
    oldname = textfiles(i).name;
    newname = ['entry_',oldname];
    movefile(oldname,newname)
end

matfiles = dir('*.mat');
for i = 1:length(matfiles)
    oldname = matfiles(i).name;
    newname = ['entry_',oldname];
    movefile(oldname,newname)
end
cd ..
movefile('entry/entry*')
rmdir('benchmark','s')
rmdir( 'entry', 's')